package com.raptor.base.util;

import org.apache.commons.lang3.StringUtils;


public class ObjectUtil {


    public static void checkArgument(Object... arguments) {

        for (Object temp : arguments) {
            if (temp == null) {
                throw new RuntimeException("argument can not be null");
            }
            if (temp instanceof String) {
                if (StringUtils.isBlank((String) temp)) {
                    throw new RuntimeException("argument can not be null");
                }
            }
        }
    }


}
